package com.uduemc.biso.core.common.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.common.extities.CCustomerData;
import com.uduemc.biso.core.common.feign.CCustomerFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class CCustomerFeignFallback implements FallbackFactory<CCustomerFeign> {

	@Override
	public CCustomerFeign create(Throwable cause) {
		return new CCustomerFeign() {

			@Override
			public RestResult append(CCustomerData customerData) {
				return null;
			}

			@Override
			public RestResult info(long id, long agentId) {
				return null;
			}

			@Override
			public RestResult infos(long agentId, String username, String numberKey, short status, int pageNumber,
					int pageSize) {
				return null;
			}
		};
	}

}
